package com.yanmk.product.service.impl;
import java.math.BigDecimal;

import com.yanmk.product.bean.Product;
import com.yanmk.product.service.ProductService;
import org.springframework.stereotype.Service;

/**
 * @program: cloud-demo
 * @description:
 * @author: Mr.Yan
 * @create: 2025-02-04 16:31
 **/
@Service
public class ProductServiceImpm implements ProductService {

@Override
public Product getProductById(Long productId) {
Product product = new Product();
product.setId(productId);
product.setPrice(new BigDecimal("99"));
product.setProductName("苹果"+productId);
product.setNum(2);
 return product;
}
}
